<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			#div {
				background-color: #FF0000;
				width: 300px;
				height: 300px;
			}
		</style>
		<script src="vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<div onmouseover="divmouseover()" id="div">
				<textarea onmouseover="textaremouseover()">这是一个文件域</textarea>
			</div>
			<hr />

			<div v-on:mouseover="fun" id="div">
				<textarea v-on:mouseover="fun2($event)">这是一个文件域</textarea>
			</div>
			<hr />
			<!-- 可以使用@来代替v-on -->
			<div @mouseover="fun" id="div">
				<textarea @mouseover="fun2($event)">文件域</textarea>
			</div>
		</div>
		<script type="text/javascript">
			var vm = new Vue({
				el: '#app',
				methods: {
					fun() {
						alert('div');
					},
					fun2(event) {
						alert('text');
						event.stopPropagation();
					}
				}
			});

			function divmouseover() {
				alert("div");
			}

			function textaremouseover() {
				alert("text");
				event.stopPropagation();
			}
		</script>
	</body>
</html>
